<?php 
require_once 'config.php';
if(isset($_GET["request_ids"])){
	// guardo en los logs la peticion luego la proceso
	saveRequest();
	
	echo "aaaaaaaaaaaa" ;
	exit;
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="favicon.ico" >

    <title>FB Toolbox</title>
    
    <script type="text/javascript" charset="utf-8">
         _lang = 'es_LA';
         _FB_APP_ID = '<?=FB_APP_ID?>';
    </script>  	
    
    <link rel="stylesheet" href="css/style.css" type="text/css" >
    <link rel="stylesheet" href="css/jquery.tooltip.css" type="text/css" >

    <script src="js/jquery.js" type="text/javascript"></script>
    
    <script src="js/autoloader_1.2.min.js" type="text/javascript"></script>
    
    
    <script src="js/jquery-ui.custom.js" type="text/javascript"></script>
    <script src="js/jquery.cookie.js" type="text/javascript"></script>

    <script src="js/jquery.bgiframe.js" type="text/javascript"></script>
    <script src="js/jquery.dimensions.js" type="text/javascript"></script>
    <script src="js/jquery.tooltip.js" type="text/javascript"></script>

    <script src="js/jquery.blockUI.js" type="text/javascript"></script>
    
    <link rel="stylesheet" type="text/css" href="js/dynatree/skin/ui.dynatree.css" >
    <script src="js/dynatree/jquery.dynatree.js" type="text/javascript"></script>

    <script src="js/functions.js" type="text/javascript"></script>

</head>
<body>

<div id="wrapper">
    <div id="sidebar">
        <div id="copyright">
            <img class="logo" src="docs/fbtoobox-logo.jpg" width="162" align="left" align="left">
            
            <div class="author">
            <img class="fb" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/203142_596614683_6642403_n.jpg" align="left">
            Mario Garcia
            <a href="http://www.facebook.com/mariogarcia.ar">http://www.facebook.com/mariogarcia.ar</a>
            <a href="http://www.ohstudio.com.ar">Oh!Studio</a>
            </div>
        </div>
        <div id="fb-tables"></div>
    </div>

    <div id="panel">
    
        <div id="action_login">
            <input type="button" value="login" onclick="on_login_permissions()">
            (publish_stream,user_likes)
            <div id="panel_permissions">
            <?php 
                $permissions = getPermissions();
                foreach($permissions as $p){
                    ?><label><input type="checkbox" value="<?=$p?>" class="action_login_permission"><?=$p?></label><?php    
                }
            ?>
            </div>
        </div>
     
        <hr >
        
        <div id="action_post">
            <input type="button" value="post" onclick="on_post()">
            <div id="panel_post">
                 <form action="" method="post" id="frmPost">
                    <label>message:<input type="text" name="message" value="completar message"></label>
                    <label>display:<input type="text" name="display" value="iframe"></label>
                    <label>caption:<input type="text" name="caption" value="completar caption"></label>
                    <label>name:<input type="text" name="name" value="completar name"></label>
                    <label>picture:<input type="text" name="picture" value="http://www.smashbros.com/en_us/characters/images/mario/mario.jpg"></label>
                    <label>link:<input type="text" name="link" value="http://www.link.com"></label>
                    <label>description:<input type="text" name="description" value="completar description"></label>
                    
                    <label>action_name:<input type="text" name="action_name" value="completar action_name"></label>
                    <label>action_link:<input type="text" name="action_link" value="http://www.action-link.com"></label>
                 </form>            
            </div>

        </div>
     
        <hr >
        
        <div id="action_share">
            <input type="button" value="share" onclick="on_share()">
            <div id="panel_share">
                <form action="" method="post" id="frmShare">
                    <label>data:<input type="text" name="data" value="completar data"></label>
                    <label>message:<input type="text" name="message" value="completar message"></label>
                    <label>title:<input type="text" name="title" value="completar title"></label>
                 </form>   
            </div>
        </div>        
    </div>

</div>
</body>
</html>
